package com.woniu.lottery.entity;

public enum LotteryResultStatus {
    SUCCESS(200, "抽奖成功"),
    ACTIVITY_NOT_STARTED(4001, "活动未开始"),
    ACTIVITY_ENDED(4002, "活动已结束"),
    NO_PRIZE_LEFT(4003, "奖品已抽完"),
    ALREADY_PARTICIPATED(4004, "已参与过活动"),
    USER_LIMIT(4005, "达到用户参与上限"),
    SYSTEM_ERROR(5000, "系统繁忙，请稍后再试");

    private final int code;
    private final String desc;

    LotteryResultStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    // getter方法
}
